﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fibot.HYYY.K3Cloud.Wdt.Application.Base
{
    public class BaseHttpResultDto
    {

        public string code { get; set; }

        public string message { get; set; }


        public object? data { get; set; }

        public BaseHttpResultDto(object? data, string _message)
        {
            code = string.IsNullOrWhiteSpace(_message) ? "200" : "500";
            message = _message;
            this.data = data;
        }
    }
}
